﻿
using System;
using SqlSugar;
using Dora.Orm.Core.Domain.Entities;

namespace Dora.Services.AdminUser.Entities
{

    /// <summary>
    /// 大社产品类型/目的地保险产品绑定实体对象
    /// </summary>
    [SugarTable("org_insurance_setting")]
    public class OrgInsuranceSettingEntity : Entity<int>
    {
        #region model

        /// <summary>
        /// 组织机构Id;社id
        /// </summary>
        public int OrgId { get; set; }

        /// <summary>
        /// 机构级别;组织机构级别 0：总（大）社，1：分社，2：门店，3：直属门店，4：直属部门。
        /// </summary>
        public int OrgLevel { get; set; }

        /// <summary>
        /// 层级路径;从最祖宗到本级,英文逗号分隔
        /// </summary>
        public string LevelPath { get; set; }

        /// <summary>
        /// 顶级组织机构Id
        /// </summary>
        public int TopOrgId { get; set; }

        /// <summary>
        /// 保险供应商Id;insurance_supplier表主键
        /// </summary>
        public int InsuranceSupplierId { get; set; }

        /// <summary>
        /// 组织机构保险产品ID;insurance_org_product表主键
        /// </summary>
        public int InsuranceOrgProId { get; set; }

        /// <summary>
        /// 保险产品名称
        /// </summary>
        public string InsuranceOrgProName { get; set; }

        /// <summary>
        /// 旅游产品类型Id/目的地Id;BingdingType为1时Product库travel_product_type表主键  为2时srm库basic_area_info表主键
        /// </summary>
        public int BindId { get; set; }

        /// <summary>
        /// 旅游产品类型名称/目的地名称;BindingType为1时冗余Product库travel_product_type表TypeName，为2时冗余srm库basic_area_info表AreaName
        /// </summary>
        public string BindName { get; set; }

        /// <summary>
        /// 绑定类型;1：根据组织机构绑定     2：根据目的地绑定
        /// </summary>
        public short BindType { get; set; }

        /// <summary>
        /// 是否启用;1启用0禁用
        /// </summary>
        public bool IsEnable { get; set; }

        /// <summary>
        /// 数据创建组团社Id
        /// </summary>
        public int SourceOrgId { get; set; }

        /// <summary>
        /// 是否删除;1是0否
        /// </summary>
        public bool IsDeleted { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        public Guid? CreatedUserId { get; set; }

        /// <summary>
        /// 创建人姓名
        /// </summary>
        public string CreatedUserName { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreatedTime { get; set; }

        /// <summary>
        /// 更新人
        /// </summary>
        public Guid? UpdatedUserId { get; set; }

        /// <summary>
        /// 更新人姓名
        /// </summary>
        public string UpdatedUserName { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime? UpdatedTime { get; set; }

        #endregion
        #region extend
        #endregion
    }
}